#
#  UDP test Makefile
#

SHELL = /bin/sh

RELEASE = 0.8

#----------------------------------------------------------- SETUP

TOPDIR = ../../../../..
include $(TOPDIR)/Makefile.common

UDP_TEST_CLASSPATH = $(TOPDIR)/src/SSF/OS/UDP
JAVAC = javac -classpath $(SSFNET_TEST_CLASSPATH)
JAVA  = java  -classpath $(UDP_TEST_CLASSPATH):$(SSFNET_TEST_CLASSPATH)

all: classes test

classes:
	$(JAVAC) *.java
	
test:
	$(JAVA) SSF.Net.Net 100 $(TOPDIR)/examples/net.dml two_UDP_hosts.dml > two_UDP_hosts.log 2>&1
	$(JAVA) SSF.OS.DumpPro two_UDP_hosts.tcpdump > two_UDP_hosts.tcpdump.txt 2>&1
	@echo ''
	@echo '-----UDP TEST: COMPLETED (see two_UDP_hosts.log two_UDP_hosts.tcpdump.txt)-----'
	@echo ''

clean:
	rm -f *.class *.log *.tcpdump *.txt

